<include file="common/header" />
<div class="main-container">
    <form id="go_pay" name="go_pay" method="POST" action="/cart/go_pay/" target="_blank">
    <input type="hidden" name="id" value="{$deal_item.id}">
    <input type="hidden" name="consignee_id" value="{$consignee_id}">
    <input type="hidden" name="credit" value="0">
    <input type="hidden" name="memo" value="{$memo}">
    <div class="container">
        <div class="content pay-item pb5">
            <h1 class="main-title text-center">确认订单提交支付</h1>
            <table class="table order-table-info">
                <tbody>
                <tr>
                    <td class="first">
                        <img src="{$deal_info.image}" style="width:60px;height:60px;" />
                        <span class="title">{$deal_item.title}</span>
                    </td>
                    <td class="text-right">
                        <span>总计金额(元）：</span>
                        <span class="total-money">{$deal_item.total_price}</span>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="content pay-item mt20 pt10">
            <h1 class="main-title">请选择支付方式：</h1>
            <div class="order-info">
                <div class="sel-pay">
                    {$payment_html}
                </div>

                <div class="text-center">
                    <a class="ui-btn ui-btn-blue btn-order" target="_blank">确认付款<i class="glyphicon glyphicon-chevron-right ml10"></i> </a>
                </div>

            </div>
        </div>
    </div>
    </form>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="padding: 0 40px 40px 40px;">
            <a class="ui-btn ui-btn-blue btn-add-close" onclick="window.location.reload()" style="line-height: 35px;"><i class="glyphicon glyphicon-remove"></i></a>
            <h1 class="add-header">支付订单</h1>
            <div class="pay" style="font-size: 16px;border-top: 1px solid #DDD;padding: 20px 0 20px 0;border-bottom: 1px solid #dDD;">
                是否支付完成？
            </div>
            <div class="add-link text-center mt30">
                <a class="ui-btn ui-btn-blue ui-btn-default mr30" onclick="window.location.href='/user/support.html';">支付完成</a>
                <a class="ui-btn ui-btn-disabled ui-btn-default" onclick="window.location.href='/user/support.html';">取消</a>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

    $(function(){
        $(".btn-order").on('click', function () {
            $('#go_pay').submit();
            $("#myModal").modal('show');
        });
    });
</script>
<include file="common/footer" />